/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

import java.util.StringTokenizer;

/**
 * @author lizhixing
 */
public class StringTokenizerTest {

  public static void main(String[] args) {
    String text = "hello:world";
    StringTokenizer st = new StringTokenizer(text, ":");
    while (st.hasMoreTokens()) {
      String token = st.nextToken();
      System.out.println("token = " + token);
    }
  }

}
